// 引入实例
import instance from '../index'

// 创建接口预设
const prefix = '/order'

// 创建订单
export const createOrder = (data) => {
  return instance({
    url: `${prefix}/create`,
    method: 'post',
    data
  })
}
// 获取订单列表
export const getOrders = (params) => {
  return instance({
    url: `${prefix}/list`,
    method: 'get',
    params
  })
}
// 获取订单列表
export const confirmOrder = (data) => {
  return instance({
    url: `${prefix}/confirm`,
    method: 'post',
    data
  })
}
